
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>注册</title>
<link href="/static/css/login.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div class="login_box">
      <div class="login_l_img"><img src="/static/images/login-img.png" /></div>
      <div class="login">
          <div class="login_logo"><a href="#"><img src="/static/images/login_logo.png" /></a></div>
          <div class="login_name">
               <p>注册</p>
          </div>
      {% macro render_field(field) %} <!-- 定义字段宏 -->
  <dt>{{ field.label }}:
  <dd>{{ field(**kwargs)|safe }}
  {% if field.errors %}
    <ul class=errors>
    {% for error in field.errors %}
      <li>{{ error }}</li>
    {% endfor %}
    </ul>
  {% endif %}
  </dd>
{% endmacro %}

    {% with messages = get_flashed_messages() %}
         {% if messages %}
               {% for message in messages %}
                    <p>{{ message }}</p>
               {% endfor %}
         {% endif %}
    {% endwith %}

          <form method="POST">
          {{ form.csrf_token }}
        {{ render_field(form.stuNum) }}
        {{ render_field(form.name) }}
        {{ render_field(form.phone) }}
        {{ render_field(form.password1) }}
        {{ render_field(form.password2) }}
        {{ form.submit2 }}
          </form>
{#      </div>#}
{#      <div class="copyright">某某有限公司 版权所有©2016-2018 技术支持电话：000-00000000</div>#}
{#</div>#}

</body>
</html>
